package com.easyhouse.controller;

import com.easyhouse.common.vo.PicUploadResult;
import com.easyhouse.service.PicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

@RestController
public class PicController {
    /**
     *
     */
    @Autowired
    private PicService picService;
    @RequestMapping("/pic/uploadImg")
    public PicUploadResult picUpload(MultipartFile pic){
        return picService.picUpload(pic);
    }
}
